<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--<base href="http://localhost:8080/wanda/">-->
<base href=".">

<title>角色管理的基本信息</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="../admin/Styles/css(1).css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function MM_jumpMenu(targ, selObj, restore) { //v3.0
		eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value
				+ "'");
		if (restore)
			selObj.selectedIndex = 0;
	}
</script>
<script>
	/*第一种形式 第二种形式 更换显示样式*/
	function setTab(name, cursel, n) {
		for (i = 1; i <= n; i++) {
			var menu = document.getElementById(name + i);
			var con = document.getElementById("con_" + name + "_" + i);
			menu.className = i == cursel ? "hover" : "";
			con.style.display = i == cursel ? "block" : "none";
		}
	}
	function deleteRoles(){
		var f1 = document.getElementById("f1");
		f1.action="${pageContext.request.contextPath }/role/deleteRoles.action"
		f1.submit();
	}
	//-->
</script>
</head>
<body>
	<div class="yboxwidth boxcenter">
		<div class="ybox09">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td class="ybox10td1"><a href="showRole.jsp"><img
								src="../admin/images/op8_1.gif" width="28" height="54"> </a></td>
						<td>
							<table border="0" cellspacing="0" cellpadding="0">
								<tbody>
									<tr valign="top">
										<td class="ybox11td5"></td>
										<td class="ybox11td6"><a
											href="http://localhost:8080/wanda/#">客户信息列表</a></td>
										<td class="ybox11td7"></td>
										<td class="ybox11td2"></td>

										<td class="ybox11td3"></td>
										<td class="ybox11td2"></td>

										<td class="ybox11td3"></td>
										<td class="ybox11td2"></td>

										<td class="ybox11td3"></td>
										<td class="ybox11td2"></td>

										<td class="ybox11td3"></td>
										<td class="ybox11td2"></td>

										<td class="ybox11td4"></td>

									</tr>
								</tbody>
							</table>
						</td>
						<td class="ybox10td1"><a href="showRole.jsp"> <img
								src="../admin/images/op8_2.gif" width="28" height="54">
						</a></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="ybox02">
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				class="margb4">
				<tbody>
					<tr>
						<td class="ybox03td1"></td>
						<td class="ybox03td2"></td>
						<td class="ybox03td3"></td>
					</tr>
					<tr>
						<td class="ybox03td4"></td>
						<td class="ybox03td5">
							<form
								action="${pageContext.request.contextPath}/role/showRole.action"  method="post">
								<div class="ybox05 margb8">
									<dl>
										<dt>
											角色名称：<input type="text" name="rolename">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="submit" value="查询"
											style="border-radius: 5px; width: 95px; height: 35px; font-size: 15px; color: white; background-color: blue">
										</dt>
									</dl>
								</div>
							</form>
							
							<div class="ybox07 margb2">

								<dl>
									<table border="0" cellspacing="0" cellpadding="0"
										class="ybox07table">
										<tbody>
											<tr align="left">
												<td class="ybox07td1"><img
													src="../admin/images/op4_1.gif"></td>
												<td><a target="iframeContext" href="${pageContext.request.contextPath }/role/toAddRolePage.action">添加角色信息</a>
												</td>
<!-- 												<td class="ybox07td2"><img -->
<!-- 													src="../admin/images/op4_0.gif"></td> -->
<!-- 												<td class="ybox07td1"><img -->
<!-- 													src="../admin/images/op4_2.gif"></td> -->
<!-- 												<td><a>修改选中用户信息</a> -->
<!-- 												</td> -->
												<td class="ybox07td2"><img
													src="../admin/images/op4_0(1).gif"></td>
												<td class="ybox07td1"><img
													src="../admin/images/op4_3.gif"></td>
													 
												<td><a onclick="deleteRoles()">移除选中角色信息</a>
												</td>
<!-- 												<td class="ybox07td2"><img -->
<!-- 													src="../admin/images/op4_0(1).gif"></td> -->
											</tr>
										</tbody>
									</table>
								</dl>
							</div>
							<form method="post" id="f1">
							<table width="100%" border="0" cellpadding="0" cellspacing="1"
								class="ybox06table">
								<tbody>
									<tr>
										<td width="30" class="ybox06td01">
											选择
										</td>
										<td width="30" class="ybox06td01">序号</td>
										<td class="ybox06td01">角色名称</td>
										<td class="ybox06td01">角色权限</td>									
									</tr>
									<c:forEach var="role" items="${lists }" varStatus="vs">
										<tr>
											<td class="ybox06td01">
											<input type="checkbox" name="ids"
												value="${role.id }"></td>
											<td class="ybox06td01">${vs.count }</td>
											<td class="ybox06td01">${role.rolename }</td>
											<td class="ybox06td01">
												<c:forEach var="authority" items="${role.authoritys}">
													${authority.name }
												</c:forEach>
											</td>
										</tr>
									</c:forEach>
								</tbody>
							</table>
							</form>

							</div>
							</div>
</body>
</html>